#include <iostream>
#include <math.h>

int main() {
	using std::cout;
	using std::cin;
	using std::endl;

	double gasConsumption = 0.0, dist = 0.0;

	cout << "Enter the gas consumption(Gal): ";
	cin >> gasConsumption;
	cout << "Enter the distance(mi): ";
	cin >> dist;

	cout << "distance per Gal is "
		<< dist / gasConsumption
		<< " km";

	return 0;
}